<?php

namespace qore_base\base;

/**
 * @author Samuel Nogueira <samuel.nogueira.dev@gmail.com>
 */
abstract class ControllerDispatcher extends Component {
	public $defaultController = "\\app\\controllers\\IndexController";
	public $defaultAction = 'index';
	
	/**
	 * Returns controller based on context variables
	 * 
	 * @return \qore\base\Controller
	 */
	abstract public function getController();
	
	/**
	 * Calls appropriate action with the appropriate arguments
	 */
	abstract public function dispatch();
	
}
